export const constRoutes = [
    {
        path: '/login',
        component: () => import('@/view/login/index.vue'),
        name: 'login'
    },
    {
        path: '/',
        component: () => import('@/view/layout/index.vue'),
        name: 'layout',
        redirect: '/home',
        children: [
            {
                path: '/home',
                component: () => import('@/view/home/index.vue'),
                meta: {
                    title: '首页',
                    icon: 'HomeFilled'
                }
            },
            {
                path: '/screen',
                meta: {
                    title: '数据大屏',
                    icon: 'DataBoard'
                }
            },
            {
                path: '/rightManage',
                meta: {
                    title: '权限管理',
                    icon: 'Lock'
                },
                children: [
                    {
                        path: '/rightManage/userManage',
                        component: () => import('@/view/rightManage/userManage.vue'),
                        meta: {
                            title: '用户管理',
                            icon: 'Handbag'
                        },
                    },
                    {
                        path: '/rightManage/roleRManage',
                        component: () => import('@/view/rightManage/roleRManage.vue'),
                        meta: {
                            title: '角色管理',
                            icon: 'UserFilled'
                        },
                    },
                    {
                        path: '/rightManage/menuManage',
                        component: () => import('@/view/rightManage/menuManage.vue'),
                        meta: {
                            title: '菜单管理',
                            icon: 'HelpFilled'
                        },
                    }
                ]
            },
            {
                path: '/productManage',
                meta: {
                    title: '商品管理',
                    icon: 'Goods'
                },
                children: [
                    {
                        path: '/productManage/bannerManage',
                        component: () => import('@/view/productManage/bannerManage.vue'),
                        meta: {
                            title: '品牌管理',
                            icon: 'Management'
                        },
                    },
                    {
                        path: '/productManage/attributeManage',
                        component: () => import('@/view/productManage/attributeManage.vue'),
                        meta: {
                            title: '属性管理',
                            icon: 'Magnet'
                        },
                    },
                    {
                        path: '/productManage/spuManage',
                        component: () => import('@/view/productManage/spuManage.vue'),
                        meta: {
                            title: 'SPU管理',
                            icon: 'Coin'
                        },
                    },
                    {
                        path: '/productManage/skuManage',
                        component: () => import('@/view/productManage/skuManage.vue'),
                        meta: {
                            title: 'SKU管理',
                            icon: 'Coin'
                        },
                    },
                ]
            }
        ]
    },
    {
        path: '/404',
        component: () => import('@/view/404/index.vue'),
        name: '404'
    },
    {
        path: '/screen',
        component: () => import('@/view/screen/index.vue'),
        meta: {
            title: '数据大屏',
            icon: 'DataBoard'
        }
    },
    {
        path: '/:pathMatch(.*)*',
        redirect: '404',
        name: 'Any'
    },
]
